﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLite.Domain.Cfg;
using NLite.Cfg;

namespace NLite.Domain.Wcf.Cfg
{
    public class ServerServiceDispatcherConfigurationItem : Extension<NdfConfigurationItem>
    {
        public override void Attach(NdfConfigurationItem owner)
        {
            owner.ServiceDispatcherCreator = () => new NLite.Domain.Wcf.Server.DispatcherService();
        }

        public override void Detach(NdfConfigurationItem owner)
        {
            owner.ServiceDispatcherCreator = null;
        }
    }
}
